﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;

namespace WatiNCF.Automater.Business.Adapters
{
    public class ParameterInfoAdapter : InfoAdapter
    {
        public ParameterInfoAdapter(ParameterInfo info)
            : base(null)
        {
            ParameterInfo = info;
        }

        public ParameterInfo ParameterInfo { get; set; }

        public override string GetName()
        {
            return ParameterInfo.Name;
        }

        public override object GetValue()
        {
            return null;
        }

        public override Type GetInfoType()
        {
            return ParameterInfo.ParameterType;
        }

        public override object SetValue(object value)
        {
            return value;
        }
    }
}
